<?php
	
	require_once("../connectMysql/connetMysql.class.php");
	$mobile=$_GET['mobile'];
	$password=md5($_GET['pass']);
	$db=new connetMysql;
	$con=$db->getConnect();
	
	$chk_sql="SELECT * FROM user WHERE UserPhone='".$mobile."'&&Password='".$password."'";	
	
	mysqli_query($con,$chk_sql);
	$num=mysqli_affected_rows($con);
	if($num==0)
	{
		$con->close(); 
		$error_respon = array('code' => 'ERROR_USER_ERROE', 'msg' => '0');
		echo json_encode($error_respon);
		
		exit;
	}
	else 
	{
		
		$con->close(); 
		$success_respon = array('code' => 'SUCCESS_USER_LOGIN', 'msg' => '1');
		echo json_encode($success_respon);
		
		exit;
	}
	echo "success";
	
?>